import axios from 'axios'

export const getDepartmentDistribution = () => {
    return axios.get('/api/department/distribution')
}

export const getMockDepartmentDistribution = () => {
    return Promise.resolve({
        data: [
            { type: '技术部', value: 120 },
            { type: '市场部', value: 90 },
            { type: '人力资源部', value: 50 },
            { type: '财务部', value: 30 },
            { type: '产品部', value: 80 },
            { type: '客服部', value: 60 }
        ]
    })
}